package us.mooresr.webtroopmanager.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class VehicleDeletedEvent extends GwtEvent<VehicleDeletedHandler> {
	private final Long deletedId;
	public static final Type<VehicleDeletedHandler> TYPE = new Type<VehicleDeletedHandler>();

	
	public VehicleDeletedEvent(Long deletedId) {
		super();
		this.deletedId = deletedId;
	}
	
	public Long getDeletedId() {
		return deletedId;
	}

	@Override
	protected void dispatch(VehicleDeletedHandler handler) {
		handler.onDeleteVehicle(this);
		
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<VehicleDeletedHandler> getAssociatedType() {
		return TYPE;
	}

}
